{% block header %}
{% endblock %}

<form method="POST" action="{{ script_root }}/admin/challenges/new" enctype="multipart/form-data">
	{% block name %}
	<div class="form-group">
		<label>
			名字:<br>
			<small class="form-text text-muted">
				您的挑战题名
			</small>
		</label>
		<input type="text" class="form-control" name="name" placeholder="输入您的挑战题名">
	</div>
	{% endblock %}

	{% block category %}
	<div class="form-group">
		<label>
			题目类型:<br>
			<small class="form-text text-muted">
				您的挑战题类型
			</small>
		</label>
		<input type="text" class="form-control" name="category" placeholder="输入您的挑战题类型">
	</div>
	{% endblock %}


	{% block message %}
	<div class="form-group">
		<label>
			信息:<br>
			<small class="form-text text-muted">
				简短地介绍一下您的题目。
			</small>
		</label>
		<textarea id="new-desc-editor" class="form-control markdown" name="description" rows="10"></textarea>
	</div>
	{% endblock %}

	{% block attribution %}
	{% endblock %}

	{% block value %}
	<div class="form-group">
		<label>
			分值:<br>
			<small class="form-text text-muted">
				当题目被解出时，用户得到多少分数。
			</small>
		</label>
		<input type="number" class="form-control" name="value" placeholder="输入分值" required>
	</div>
	{% endblock %}

	{% block state %}
	<input type="hidden" name="state" value="hidden">
	{% endblock %}

	{% block type %}
	<input type="hidden" name="type" value="standard">
	{% endblock %}

	{% block submit %}
	<div class="form-group">
		<button class="btn btn-primary float-right create-challenge-submit" type="submit">创建新题</button>
	</div>
	{% endblock %}
</form>

{% block footer %}
{% endblock %}